﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrgPersTree_View.aspx.cs" Inherits="SysManage_OrgPersTree_View" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
 <title>人员信息展示</title>
    <base target ="_self" />
    <link rel="stylesheet" href ="../css/css.css" type="text/css" />
    <!--#include file="../JS/TrimData.js"--> 
</head>
<body>
<% 
  Response .ExpiresAbsolute=System.DateTime.Now. AddSeconds(-1);
  Response.Expires=0;
  Response.CacheControl = "no-cache";
%>
 <form id="form1" method ="post" runat="server">
    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="15%" height="18" valign="top" background="../images/tablelb.gif" class="font13"> 
      <div align="left"><IMG height=18 src="../images/tablelbleft.gif" width=18></div></td>
    <td width="2%" valign="top" background="../images/tablelb.gif" bgcolor="#ffffff" class="font13"> 
      <div align="right"><IMG height=18 src="../images/tablelbright.gif" width=12></div></td>
    <td colspan="2" valign="center" bgcolor="#ffffff" class="font13"> <div align="right"> 
      </div></td>
  </tr>
  <tr>
    <td height="26" colspan="2" valign="center" bgcolor="#e9ecf5" class="font13"> 
      <div align="center">人员管理</div></td>
    <td width="80%" height="26" valign="bottom" background="../images/tddi.gif" class="font13"> 
      <div align="right"> </div></td>
    <td width="3%" valign="top" background="../images/tddi.gif" class="font13"> 
      <div align="right"><IMG height=26 src="../images/tddir.gif"></div></td>
  </tr>
</table>
<table width="98%" height="107" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#e9ecf5">
  <tr> 
    <td height="147"  valign="top"> 
      <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="tablelsdi">
          <tr> 
            <td width="4%" background="../images/tablelb01.gif"><img src="../images/tablelb01-left.gif" width="21" height="22"></td>
            <td width="82%" background="../images/tablelb01.gif" class="font12w">人员信息展示</td>
            <td width="14%" background="../images/tablelb01.gif"> <div align="right"><img src="../images/tablelb01-right.gif" width="21" height="22"></div></td>
          </tr>
        </table>
    <table width="98%" border="1" align="center" cellpadding="0" cellspacing="0" class="tablelb" style ="border-collapse :collapse ;">
     <tr style ="height :26px;">
        <td style="width :20%;" bgcolor="#ECF4FD" class="tableleft" align ="right" >员工号&nbsp;</td>
        <td style="width :30%;" bgcolor="#ECF4FD" class="tableleft">&nbsp;<asp:Label ID="PersCode" runat ="server"></asp:Label></td>
        <td style="width :20%;" width="20%" bgcolor="#ECF4FD" class="tableleft" align ="right" >人员名称&nbsp;</td>
        <td style="width :30%;" bgcolor="#ECF4FD" class="tableleft">&nbsp;<asp:Label ID="Name" runat ="server"></asp:Label></td>
      </tr>
      <tr style ="height :26px;">
        <td bgcolor="#E1EEFD" class="tableleft"  align ="right">姓别&nbsp;</td>
        <td bgcolor="#E1EEFD" class="tableleft">&nbsp;<asp:Label ID="Sex" runat ="server" ></asp:Label></td>
        <td bgcolor="#E1EEFD" class="tableleft" align ="right" >排序号&nbsp;</td>
        <td bgcolor="#E1EEFD" class="tableleft">&nbsp;<asp:Label ID="POrder" runat ="server"></asp:Label></td>
      </tr>
      <tr style ="height :26px;">
        <td bgcolor="#ECF4FD" class="tableleft"  align ="right">出生日期&nbsp;</td>
        <td bgcolor="#ECF4FD" class="tableleft">&nbsp;<asp:Label ID="Birth" runat ="server"></asp:Label></td>
        <td bgcolor="#ECF4FD" class="tableleft" align ="right" >身份证&nbsp;</td>
        <td bgcolor="#ECF4FD" class="tableleft">&nbsp;<asp:Label ID="CardID" runat ="server" ></asp:Label></td>
      </tr>
      <tr style ="height :26px;">
        <td bgcolor="#E1EEFD" class="tableleft"  align ="right">所属组织&nbsp;</td>
        <td bgcolor="#E1EEFD" class="tableleft">&nbsp;<asp:Label  ID="OrgName" runat ="server"></asp:Label></td>
        <td bgcolor="#E1EEFD" class="tableleft" align ="right" >是否负责人&nbsp;</td>
        <td bgcolor="#E1EEFD" class="tableleft"><asp:Label ID="principal" runat ="server"></asp:Label></td>
      </tr>
      <tr style ="height :26px;">
        <td bgcolor="#ECF4FD" class="tableleft" align ="right" >职务&nbsp;</td>
        <td bgcolor="#ECF4FD" class="tableleft">&nbsp;<asp:Label ID="Duty" runat ="server"></asp:Label></td>
        <td bgcolor="#ECF4FD" class="tableleft"  align ="right">固定电话&nbsp;</td>
        <td bgcolor="#ECF4FD" class="tableleft">&nbsp;<asp:Label ID="Phone" runat ="server"></asp:Label></td>
      </tr>
      <tr style ="height :26px;">
        <td bgcolor="#E1EEFD" class="tableleft" align ="right" >移动电话&nbsp;</td>
        <td bgcolor="#E1EEFD" class="tableleft">&nbsp;<asp:Label ID="Mobile" runat ="server"></asp:Label></td>
        <td bgcolor="#E1EEFD" class="tableleft"  align ="right">是否有效&nbsp;</td>
        <td bgcolor="#E1EEFD" class="tableleft">&nbsp;<asp:Label ID="Effective" runat ="server" ></asp:Label>
        </td>
      </tr>
      <tr>
        <td bgcolor="#ECF4FD" class="tableleft" align="right"><input type="checkbox" name="Continue" id="IfsaveDeptHistoryInfo" runat ="server" onclick ="if(this.checked==true){DivHistoryDesc.style.display='';var vButton2=window.document.getElementById('HistoryInfo'); if(vButton2!=null){vButton2.focus();vButton2.click();} } else{DivHistoryDesc.style.display='none';}" /></td>
        <td bgcolor="#ECF4FD" class="tableleft" colspan ="3">查看历史信息</td>
      </tr>
      </table>
      <div id="DivHistoryDesc" style="DISPLAY:none" runat ="server" >
       <table width="98%" border="1" align="center" cellpadding="0" cellspacing="0" class="tablelb" style ="border-collapse :collapse ;">
         <tr>
          <td bgcolor="#ECF4FD" class="tableleft" align="right">          
          <asp:GridView ID="GridView1" runat="server" CellPadding="0" ForeColor="#333333" DataKeyNames="ID" PageSize ="15"
            Width="99%" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"  OnPageIndexChanging="GridView1_PageIndexChanging"  Font-Bold="False" HorizontalAlign="Center" BorderColor="White" OnRowDataBound="GridView1_RowDataBound" OnRowCreated="GridView1_RowCreated" EmptyDataText="没有简历信息">
            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="White" ForeColor="#333333" Height="22px" />            
            <PagerStyle BackColor="White" ForeColor="#333333" HorizontalAlign="Right" Wrap="False" />
            <HeaderStyle BackColor="#99CCFF" Font-Bold="True" ForeColor="Black" Height="23px" />
            <AlternatingRowStyle BackColor="AliceBlue" />
            <Columns>
              <asp:TemplateField>
                  <ItemTemplate><%#(Container.DataItemIndex+1) %></ItemTemplate>              
                  <HeaderStyle HorizontalAlign="center" Width="5%" />
              </asp:TemplateField>
              <asp:BoundField DataField="Descr" HeaderText="简介">
                   <ItemStyle HorizontalAlign="left" />
                   <HeaderStyle HorizontalAlign ="center"  />
              </asp:BoundField>            
            </Columns>
           <PagerSettings FirstPageImageUrl="img/BeginPage.gif" LastPageImageUrl="img/EndPage.gif"
            NextPageImageUrl="img/NextPage.gif" PreviousPageImageUrl="img/PrePage.gif" Mode="NextPreviousFirstLast" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PreviousPageText="上一页" />
                 <EmptyDataRowStyle HorizontalAlign="Center" />
            </asp:GridView>
          
          </td>
         </tr>
      </table>
      </div> 
      <table  width="98%" border="0" cellpadding="5" cellspacing="0" align="center" >      
       <tr>
        <td align ="center" >            
            <input type ="button" id="backBtn" class="button02"  value ="返回(c)" accesskey ="c"  onclick ="window.close();" /></td>
      </tr>
    </table>
    </td> 
    </tr>
    </table>
    <asp:Button ID="HistoryInfo" runat="server" Text="Button" Height="0px" Width="0px" OnClick="HistoryInfo_Click" />
     <input type="hidden" id="hPersID" runat ="server" /> 
    </form>
    <script language ="javascript" type="text/javascript" >
    <!--
      var sData = dialogArguments;      
      var sobj = sData.form1.Hcode.value;  //组织信息
      var ary=sobj.split(','); 
      //alert(ary[0]);
      if(sData.stype == "4")  // 2 修改 1 新建
      {         
         var sobj2 = sData.form1.HPCode.value  //人员信息
         var ary2=sobj2.split('|');
//         alert(ary2);
         form1.hPersID.value = trim(ary2[1])
         window.document.all.PersCode.innerText = trim(ary2[2]);     //人员名称
         window.document.all.Name.innerText = trim(ary2[3]);     //人员名称
         window.document.all.Sex.innerText = trim(ary2[4]);      //性别
         window.document.all.Birth.innerText = trim(ary2[5]);    //出生年月
         window.document.all.CardID.innerText = trim(ary2[6]);   //身份证          
         window.document.all.Duty.innerText = trim(ary2[7]);     //职务
         window.document.all.Phone.innerText = trim(ary2[9]);    //固定电话
         window.document.all.Mobile.innerText = trim(ary2[10]);    //手机/小灵通
         window.document.all.POrder.innerText = trim(ary2[17]);    //排序号   
         window.document.all.OrgName.innerText = trim(ary2[14]);  //所属组织     
               
         var sEffective ="";
         if(trim(ary2[18]) == "1")
         {
           sEffective = "是";
         }
         else
         {
           sEffective = "否";
         }
         
         window.document.all.Effective.innerText = sEffective;  //是否有效
         /*var Orgperson ="";
         if(trim(ary2[17]) == "1")
         {
           Orgperson = "是";
         }
         if(trim(ary2[17]) == "0")
         {
           Orgperson = "否";
         }*/
         window.document.all.principal.innerText =trim(ary2[11]);  //是否部门负责人
       }      
   -->
  </script>
</body>
</html>